package com.zxl.grocerymicroservicewechatmeal.repository;

import com.zxl.grocerymicroservicewechatmeal.dataobject.ProductInfo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @Author: zxl
 * @Description:
 * @Date: Created in 10:23 2017/11/15
 * @Modified By:
 */
public interface ProductInfoRepository extends JpaRepository<ProductInfo,String> {

    /**
     * 查询所有上架的商品
     * @param productStatus
     * @return
     */
    List<ProductInfo> findByProductStatus(Integer productStatus);
}
